﻿#include "about.h"
#include "ui_about.h"
#include <QImage>

about::about(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::about)
{
    ui->setupUi(this);
    this->setFixedSize(630,200);
    this->setWindowTitle("关于");

    QImage *img = new QImage;
    img->load(":/new/prefix1/res/OnePass.png");
    //img->scaled(80,60,Qt::KeepAspectRatio);
    QPixmap pix;
    pix.load(":/new/prefix1/res/OnePass.png");
    //pix = pix.scaled(180,160,Qt::KeepAspectRatio);


    ui->label->setPixmap(pix);
    ui->label->setScaledContents(true);
    //ui->label->resize(100,80);

    //ui->label_2->setStyleSheet("color:'black';font-size:20");
    this->setStyleSheet("QLabel{color:'black';font-weight:bold;font-size:18px;}");

    ui->label_2->setText(QString("OnePassX ").append(QApplication::applicationVersion()));
    //ui->label_3->setText("www.atnoce.com");
    ui->label_4->setText("Copyright 2016-2020 The atnoce Company Ltd. ");
    ui->label_4->setStyleSheet("font-size:14px");



}

about::~about()
{
    delete ui;
}
